package com.peas.platform.module.icims.base.mdm.domain.impl;

import com.peas.platform.framework.mybatisplus.domain.BaseDomainImpl;
import com.peas.platform.framework.mybatisplus.repository.BaseRepository;
import com.peas.platform.module.icims.base.mdm.adapter.repository.MessageRepository;
import com.peas.platform.module.icims.base.mdm.adapter.repository.po.MessagePo;
import com.peas.platform.module.icims.base.mdm.domain.MessageDomain;
import com.peas.platform.module.icims.base.mdm.dto.MessageDto;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class MessageDomainImpl extends BaseDomainImpl<MessageDto, MessagePo> implements MessageDomain {

    @Resource
    private MessageRepository messageRepository;

    @Override
    public BaseRepository<MessagePo> getMapper() {
        return messageRepository;
    }

    @Override
    public Class<? extends BaseRepository<MessagePo>> getRepositoryClass() {
        return MessageRepository.class;
    }

}
